[dotnet] [bidi] Make ContinueWithAuthCommand closer to spec (breaking change)#15545
[dotnet] [bidi] Make ContinueWithAuthCommand closer to spec (breaking change)#15545nvborisenko merged 3 commits intoSeleniumHQ:trunkfrom
Conversation
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
||||||||||||||
RenderMichael
left a comment
There was a problem hiding this comment.
I like the pattern!
Co-authored-by: Michael Render <render.michael@gmail.com>
User description
Motivation and Context
Revisited
ContinueWithAuthCommandto be closer with spec, fixes #15539.Also avoided nested types, opening the doors for static factory.
Types of changes
Checklist
PR Type
Enhancement, Tests
Description
Refactored
ContinueWithAuthmethod to align with BiDi spec.Introduced new classes for clearer type differentiation.
Updated method overloads for better usability and clarity.
Adjusted test cases to validate the refactored implementation.
Changes walkthrough 📝
BiDiJsonSerializerContext.cs
Simplified serialization context for network commandsdotnet/src/webdriver/BiDi/Communication/Json/BiDiJsonSerializerContext.cs
JsonSerializabletype forDefaultaction.ContinueWithAuthCommand.cs
Refactored `ContinueWithAuthCommand` with clearer abstractionsdotnet/src/webdriver/BiDi/Modules/Network/ContinueWithAuthCommand.cs
ContinueWithAuthNoCredentialsabstraction.defaultandcancelactions.NetworkModule.cs
Updated `ContinueWithAuthAsync` method overloadsdotnet/src/webdriver/BiDi/Modules/Network/NetworkModule.cs
ContinueWithAuthAsyncmethod overloads.Request.cs
Adjusted `Request` methods for refactored auth handlingdotnet/src/webdriver/BiDi/Modules/Network/Request.cs
ContinueWithAuthAsynccalls to use new options classes.NetworkTest.cs
Updated tests for refactored `ContinueWithAuth` implementationdotnet/test/common/BiDi/Network/NetworkTest.cs
ContinueWithAuthbehavior for all scenarios.